package com.stepcleanse.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.stepcleanse.system.mapper.SellOrderMapper;
import com.stepcleanse.system.domain.SellOrder;
import com.stepcleanse.system.service.ISellOrderService;

/**
 * 售卖订单Service业务层处理
 * 
 * @author stepcleanse
 * @date 2024-12-09
 */
@Service
public class SellOrderServiceImpl implements ISellOrderService 
{
    @Autowired
    private SellOrderMapper sellOrderMapper;

    /**
     * 查询售卖订单
     * 
     * @param orderId 售卖订单主键
     * @return 售卖订单
     */
    @Override
    public SellOrder selectSellOrderByOrderId(String orderId)
    {
        return sellOrderMapper.selectSellOrderByOrderId(orderId);
    }

    /**
     * 查询售卖订单列表
     * 
     * @param sellOrder 售卖订单
     * @return 售卖订单
     */
    @Override
    public List<SellOrder> selectSellOrderList(SellOrder sellOrder)
    {
        return sellOrderMapper.selectSellOrderList(sellOrder);
    }

    /**
     * 新增售卖订单
     * 
     * @param sellOrder 售卖订单
     * @return 结果
     */
    @Override
    public int insertSellOrder(SellOrder sellOrder)
    {
        return sellOrderMapper.insertSellOrder(sellOrder);
    }

    /**
     * 修改售卖订单
     * 
     * @param sellOrder 售卖订单
     * @return 结果
     */
    @Override
    public int updateSellOrder(SellOrder sellOrder)
    {
        return sellOrderMapper.updateSellOrder(sellOrder);
    }

    /**
     * 批量删除售卖订单
     * 
     * @param orderIds 需要删除的售卖订单主键
     * @return 结果
     */
    @Override
    public int deleteSellOrderByOrderIds(String[] orderIds)
    {
        return sellOrderMapper.deleteSellOrderByOrderIds(orderIds);
    }

    /**
     * 删除售卖订单信息
     * 
     * @param orderId 售卖订单主键
     * @return 结果
     */
    @Override
    public int deleteSellOrderByOrderId(String orderId)
    {
        return sellOrderMapper.deleteSellOrderByOrderId(orderId);
    }
}
